package cn.edu.zafu.bigdata.x.yaojy;

abstract class Shape {
    public abstract double area();
    public abstract double perimeter();

    public final void display(){
        System.out.println("shape:" + getClass().getSimpleName());
        System.out.println("area:"+ area());
        System.out.println("perimeter:" + perimeter());
    }


}
